x86: enclose hvm_op and dm_op in CONFIG_HVM in relevant tables
authorWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 12:19:36 +0000 (13:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Aug 2018 09:48:33 +0000 (10:48 +0100)
commita0a6b2421ffcd917d35c2879b6df6c1bfe63f6ca
tree537b2c3c104c65f7c7f632b7c0afdee84fc015ac
parent36e29dd9e580cb0f847f5ac1e72afdb5febe3e99
x86: enclose hvm_op and dm_op in CONFIG_HVM in relevant tables

PV guest (Dom0) needs to able to use these two hypercalls in order to
serve HVM guests. But if xen doesn't support HVM at all there is no
point in exposing them to PV guests.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hypercall.c
xen/arch/x86/pv/hypercall.c